package pao.akka.util;

import java.util.List;

/**
 * @Author: 陶鹏飞
 * @Description: 描述投资方案和投资收益
 * @Date: 2018/9/10-21:25
 * @email: taopengfei1223@foxmail.com
 **/
public final class PsoValue {
    final double value;
    final List<Double> x;

    public PsoValue(double value, List<Double> x) {
        this.value = value;
        this.x = x;
    }

    public double getValue() {
        return value;
    }

    public List<Double> getX() {
        return x;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("value:").append(value).append("\n ")
                .append(x.toString());

        return sb.toString();
    }
}
